import 'package:flutter/cupertino.dart';

import '../../data/model/music_data.dart';
import '../music_list_item.dart';

class MusicListContent extends StatelessWidget {
  List<MusicData> musicDataList;

  MusicListContent({required this.musicDataList});

  @override
  Widget build(BuildContext context) {
    return Expanded(
        child: ListView.builder(
          itemBuilder: (context, index) => MusicListItem(musicData: musicDataList[index]),
          itemCount: musicDataList.length
        )
    );
  }
}